package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.Site;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SiteRepository extends JpaRepository<Site, Long> {
    Site queryByNameEquals(String name);

    List<Site> findByLanguageId(Long languageId);

    List<Site> queryByCurrencyIdEquals(Long currencyId);

    List<Site> queryByCountryIdEquals(Long countryId);

    List<Site> findAllByState(Integer stateStart, Sort id);
}
